package com.biz.primus.model.oms.vo;

import com.biz.primus.model.oms.enums.ItemType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import java.util.Collections;
import java.util.List;

/**
 * @author yanweijin
 * @date 2017/10/31
 */

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
@ApiModel("订单/退单商品项信息")
public class OmsItemVo {


	@ApiModelProperty(value="商品项唯一编号,相当于id", required = true)
	String itemCode;

	@ApiModelProperty(value="商品编号",required = true)
	String code;

	@ApiModelProperty(value="商品类型",required = true)
	ItemType type;

	@ApiModelProperty(value="分类编号",required = true)
	String category;

	@ApiModelProperty(value="品牌编号",required = true)
	String brand;

	@ApiModelProperty(value="商品条码",required = true)
	String barcode;

	@ApiModelProperty(value="商品名称",required = true)
	String name;

	@ApiModelProperty(value="数量",required = true)
	Integer quantity;

	@ApiModelProperty(value="商品单价(原价)",required = true)
	Integer price;

	@ApiModelProperty("使用的积分")
	Integer usePoint = 0;

	@ApiModelProperty(value="商品最终销售单价",required = true)
	Integer finalPrice;

	@ApiModelProperty("市场价")
	Integer marketPrice = null;

	@ApiModelProperty("总折扣金额")
	Integer discountAmount = 0;
	@ApiModelProperty("促销折扣金额")
	Integer discountPop = 0;
	@ApiModelProperty("券折扣金额")
	Integer discountCoupon = 0;
	@ApiModelProperty("临时折扣金额")
	Integer discountGrant = 0;
	@ApiModelProperty("单个商品重量")
	Integer weight = 0;

	@ApiModelProperty("包装含量,单个商品为1")
	Integer factor = 1;
	@ApiModelProperty("单位(个,瓶,想等)")
	String unitcode;

	@ApiModelProperty("促销活动分摊信息")
	List<PromotionApportionmentVo> promotions = Collections.emptyList();
	@ApiModelProperty("优惠券分摊信息")
	List<CouponApportionmentVo> coupons = Collections.emptyList();

}
